Skip to content

Remove quote verification flag (#2394) - #3824

Closed
Grinsven wants to merge 1 commit into
cowprotocol:mainfrom
Grinsven:remove-verified-quotes-flag-2394
Closed

Grinsven wants to merge 1 commit into
cowprotocol:mainfrom
Grinsven:remove-verified-quotes-flag-2394

Conversation

@Grinsven

Copy link
Copy Markdown
Contributor

Fixes #2394

The quote verification flag has been stabilized and can now be removed. The flag was previously used to configure whether verified quotes should be preferred over unverified ones.

The implementation removes the --quote-verification CLI flag from all services and hardcodes the behavior to always prefer verified quotes. This affects 9 files across shared libraries, orderbook, autopilot, and e2e tests.

Changes include:

  • Removed quote_verification field from Arguments struct in price_estimation/mod.rs
  • Hardcoded QuoteVerificationMode::Prefer in CompetitionEstimator constructor
  • Removed with_verification() configuration method from CompetitionEstimator
  • Updated OrderQuoter to remove quote_verification parameter
  • Simplified verify_quote() logic to always prefer verified quotes
  • Updated orderbook and autopilot service initialization
  • Fixed e2e tests that referenced the removed flag

- Remove --quote-verification CLI flag from Arguments struct
- Hardcode QuoteVerificationMode::Prefer in CompetitionEstimator
- Update all services to use default verification mode

@MartinquaXD MartinquaXD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every now and again we make use of unverified quotes so I think the flag should not be removed after all. Sorry for the wasted effort.

@Grinsven Grinsven closed this Oct 27, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: Remove feature gates for verified quotes

2 participants